#pragma once
#include "cynetobject.h"
class CyNetAccelerometer : public CyNetObject
{
public:
	CyNetAccelerometer(void);
	virtual ~CyNetAccelerometer(void);

	virtual int GetSize() const;
	virtual int GetStream(char* buffer, int size) const;
	virtual CyNetObject& FromStream(const char* buffer);
	virtual CyNetObjectEnum GetType() const;

	float _x, _y, _z;

	float Magnitude();
};

